import lombok.Data;
import java.util.ArrayList;
import java.util.List;

@Data
public class User {
    private String userId;
    private String name;
    private List<Book> borrowedBooks = new ArrayList<>();
    public void borrowBook(Book book) {
        borrowedBooks.add(book);
    }// 当前借阅的书籍
}